home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / PC Card SDKs / PC Card Manager 2.0 SDK / Software / PC Card Sample / CardSpecific / CardSpecific.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-06-05  |  1.3 KB  |  53 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        CardSpecific.h
  3.  
  4.     Contains:    Definitions and constants which are unique to this PC Card client
  5.  
  6.     Written by:    Dave Falkenburg
  7.  
  8.     Copyright © 1992-1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <0>     12/6/95    DRF        Initial edit
  13. */
  14.  
  15. #ifndef    _APPLE_CARDSPECIFIC_
  16. #define    _APPLE_CARDSPECIFIC_
  17.  
  18. #include "STNIC.h"
  19.  
  20. enum
  21.     {
  22.     kMyClientVersion             =    0x0100,        //    driver version, in BCD
  23.     kRequiredCSLevel            =    0x0210,        //    card services release compliance, in BCD
  24.     kMyClientRevisionDate        =    ((1995-1980)<<9) | (12<<5) | (6<<0),    //    December 6th, 1995 (y/m/d)
  25.  
  26.     //    These values are associated with the IBM 10BaseT Ethernet PC Card
  27.  
  28.     kMyTPLMID_MANF                =    0xA400,        // PCMCIA PC Card manufacturer code
  29.     kMyTPLMID_CARD                =    0x0200,        // manufacturer information (part number and/or revision)
  30.  
  31.  
  32.     kPCCardClientAttributes        =    (kCSIOClient | kCSShareableCardInsertEvents),
  33.  
  34.     kInterestingPCCardEvents =
  35.         (kCSEjectRequestEvent | kCSReadyChangeEvent | kCSCardDetectChangeEvent |
  36.         kCSPMChangeEvent | kCSResetEvent | kCSFunctionInterrupt)
  37.     };
  38.  
  39.  
  40. struct    PCCardPerSocketState
  41.     {
  42.     UInt32        cardFlags;        //    must be present in structure
  43.  
  44.     UInt8        ethernetAddress[6];
  45.     STNICReg *    ioBase;
  46.     void *        memBase;
  47.  
  48.     UInt32        ioWindowHandle;
  49.     UInt32        memWindowHandle;
  50.     };
  51.  
  52. #endif
  53.